﻿@model StarcraftDemo4.Result

@{
    ViewBag.Title = "edit";
}

<h2>edit</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Result</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.GameId)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.GameId)
            @Html.ValidationMessageFor(model => model.GameId)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Minerals)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Minerals)
            @Html.ValidationMessageFor(model => model.Minerals)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Gas)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Gas)
            @Html.ValidationMessageFor(model => model.Gas)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Marines)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Marines)
            @Html.ValidationMessageFor(model => model.Marines)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Marauder)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Marauder)
            @Html.ValidationMessageFor(model => model.Marauder)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.SCV)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.SCV)
            @Html.ValidationMessageFor(model => model.SCV)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Time)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Time)
            @Html.ValidationMessageFor(model => model.Time)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Refinery)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Refinery)
            @Html.ValidationMessageFor(model => model.Refinery)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.CommandCenter)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.CommandCenter)
            @Html.ValidationMessageFor(model => model.CommandCenter)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Barracks)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Barracks)
            @Html.ValidationMessageFor(model => model.Barracks)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.TechLab)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.TechLab)
            @Html.ValidationMessageFor(model => model.TechLab)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Reactor)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Reactor)
            @Html.ValidationMessageFor(model => model.Reactor)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.SupplyDepot)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.SupplyDepot)
            @Html.ValidationMessageFor(model => model.SupplyDepot)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.MoveList)
        </div>
        <div class="editor-field">
            @Html.HiddenFor(model => model.MoveList)
            @Html.ValidationMessageFor(model => model.MoveList)
        </div>

        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("back to list", "Index")
</div>
